package com.cc.bill.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2020-12-11 15:02:33
 */
@Data
public class UploadSubmitBillVo implements Serializable {

	/**
	 * 报销金额
	 */
	private BigDecimal billPrice;
	/**
	 * 详细内容
	 */
	private String billContent;
	/**
	 * 报销凭证src
	 */
	private String billCertificate;
	/**
	 * 报销项目名称
	 */
	private String billName;
	/**
	 * 照片src List
	 */
	private List<String> certificate_pictures;

	/**
	 * 判断是否对象含有属性为空
	 */
	public boolean judge(){
		if (this.billPrice == null || this.billContent == null) {
			if(this.billCertificate != null || (this.certificate_pictures != null && this.billName != null))
				return true;
			return false;
		}
		return false;
	}
}
